//
//  BPShaoYiShaoViewController.swift
//  BPWeiBo
//
//  Created by apple on 16/4/8.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

class BPShaoYiShaoViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = UIColor(red: 236 / 255.0, green: 236 / 255.0, blue: 236 / 255.0, alpha: 1)
        
        setBarButton()
    }
    
    //MARk:设置这个控制器两边的UIBarButtonItem
    private func setBarButton() {
        let rigthItem = UIBarButtonItem(imgName: "navigationbar_friendsearch", title: "", target: self, action: "push1")
        
        navigationItem.rightBarButtonItem = rigthItem
    }

    @objc private func push1() {
        let addControl = BPShaoYiShaoViewController()

        navigationController?.pushViewController(addControl, animated: true)
        
    }

}
